package com.dayuanit.booksystem.mapper;

import com.dayuanit.booksystem.domain.PublisherInfo;
import com.dayuanit.booksystem.eneity.Publisher;
import org.apache.ibatis.annotations.Param;

public interface PublisherMapper {

    int insert(Publisher publisher);

    Publisher getPublisherByName(String pubName);

    Publisher getPublisherById(Long id);

    int updateAddress(@Param("publisherId") Long publisherId, @Param("address") String address);

    PublisherInfo getPublisherInfo(Long publisherId);

}
